package com.aaa.sso.feign;

import com.aaa.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @InterfaceName AdminFeign
 * @Description
 * @Author 崔灿
 * @LastChangeDate 2023/2/25 10:12
 * @Version v1.0
 */
@FeignClient(value = "car-system")
public interface UserFeign {
    /**
     * #Description getByName
     * @param name
     * @return 
     * @author 崔灿
     * #Date 
     */
    
    //建议:如果是服务之间的调用直接返回对象，如果是前端调用CommonResult
    @GetMapping("/system/user/getByName/{name}")
    public User getByName(@PathVariable String name);
}
